#ifndef CLASSWITHFLOATING_H 
#define CLASSWITHFLOATING_H 

#include "BearFactory.h"
#include "ClassWithFloatingBear.h"


class ClassWithFloating
     : public ClassWithFloatingBear
{
public:
    ClassWithFloating();

    ~ClassWithFloating();

    //You can edit this part - Start

    //You can edit this part - End
};


class ClassWithFloatingFactory
     : public BBFactory
{
public:
    ClassWithFloatingFactory()
    {
        BearFactory::instance()->registerFactory( "ClassWithFloating", this );
    }

    ~ClassWithFloatingFactory()
    {
        //DOES NOTHING
    }

    virtual Bear* instance() const
    {
        return new ClassWithFloating();
    }
};

Q_DECLARE_METATYPE( ClassWithFloating );

#endif
